package top.ckxgzxa.newscms.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 赵希奥
 * @date 2022/4/29 22:49
 * @gitHub https://github.com/CKXGZXA
 * @gitee https://gitee.com/ckxgzxa
 * @description:
 */
@Data
@TableName("news")
public class News {
    @TableId(value ="id",type = IdType.AUTO)
    Long id;

    @TableField("title")
    String title;

    @TableField("content")
    String content;

    @TableField("create_time")
    LocalDateTime createTime;

    @TableLogic
    @TableField("is_deleted")
    Integer isDeleted;
}
